package com.battle.pojo.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.battle.pojo.enums.UserShareTypeEnum;
import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import lombok.Data;
import nirvana.core.domains.ann.AccEntity;
import nirvana.core.domains.entity.DomainBaseEntity;
import nirvana.core.domains.enums.EntityType;

/**
 * @author anni.zhu
 * @author anni.zhu@king-v.com
 * Created in 2024/9/11 15:24
 */

@Data
@TableName(value = "USER_SHARE",autoResultMap = true)
@Entity(name = "USER_SHARE")
@AccEntity(value = "用户分享", type = EntityType.SERVICE_ENTITY)
public class UserShare extends DomainBaseEntity<UserShare> {
    /**
     * 分享人
     */
    @Column()
    private Long shareId;

    /**
     * 被分享人
     */
    @Column()
    private Long receiveShareId;

    /**
     * 分享内容id
     */
    @Column()
    private Long fid;

    /**
     * 分享内容类型
     */
    @Column()
    private UserShareTypeEnum type;
}
